#!/usr/bin/env python
# -*- coding:utf-8 -*-

# file:do4进程参数.py
# author: 马国鑫
# datetime:2022/3/26 17:55
# software: PyCharm

"""
this is function  description 
"""

# import module your need
import multiprocessing


# 带有参数的函数
def dance(count):
    for i in range(count):
        print('跳舞')


if __name__ == "__main__":
    # target指定要执行的函数
    # name指定进程名字
    # my_dance = multiprocessing.Process(target=dance, args=(5,))
    my_dance = multiprocessing.Process(target=dance, kwargs={"count": 5})

    my_dance.start()
